package domain.entities;

import javax.persistence.*;
import java.io.Serializable;

import static javax.persistence.GenerationType.IDENTITY;

/**
 * Created with IntelliJ IDEA.
 * User: vgonzalez
 * Date: 05/11/12
 * Time: 16:17
 * To change this template use File | Settings | File Templates.
 */
@Entity
@Table(name = "irbSop", catalog = "bms")
public class IrbSop implements Serializable{
    private Integer id;
    private String investigatorBrochure;
    private String investigatorBrochureSpecify;
    private String investigatorBrochureComments;
    private String susar;
    private String susarSpecify;
    private String susarComments;
    private String saes;
    private String saesSpecify;
    private String saesComments;
    private String blinded;
    private String periodicReports;
    private String significantDeviations;
    private String significantDeviationsSpecify;
    private String significantDeviationsComments;
    private String nonSignificantDeviations;
    private String nonSignificantDeviationsSpecify;
    private String nonSignificantDeviationsComments;
    private String reapprovalRequired;
    private String safetyDocumentsLanguage;

    private String generalComments;



    public IrbSop() {
    }

    @Id
    @GeneratedValue(strategy = IDENTITY)
    @Column(name = "id", unique = true, nullable = false)
    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getInvestigatorBrochure() {
        return investigatorBrochure;
    }

    public void setInvestigatorBrochure(String investigatorBrochure) {
        this.investigatorBrochure = investigatorBrochure;
    }

    public String getSusar() {
        return susar;
    }

    public void setSusar(String susar) {
        this.susar = susar;
    }

    public String getSaes() {
        return saes;
    }

    public void setSaes(String saes) {
        this.saes = saes;
    }

    public String getBlinded() {
        return blinded;
    }

    public void setBlinded(String blinded) {
        this.blinded = blinded;
    }

    public String getPeriodicReports() {
        return periodicReports;
    }

    public void setPeriodicReports(String periodicReports) {
        this.periodicReports = periodicReports;
    }

    public String getSignificantDeviations() {
        return significantDeviations;
    }

    public void setSignificantDeviations(String significantDeviations) {
        this.significantDeviations = significantDeviations;
    }

    public String getNonSignificantDeviations() {
        return nonSignificantDeviations;
    }

    public void setNonSignificantDeviations(String nonSignificantDeviations) {
        this.nonSignificantDeviations = nonSignificantDeviations;
    }

    public String getReapprovalRequired() {
        return reapprovalRequired;
    }

    public void setReapprovalRequired(String reapprovalRequired) {
        this.reapprovalRequired = reapprovalRequired;
    }

    public String getSafetyDocumentsLanguage() {
        return safetyDocumentsLanguage;
    }

    public void setSafetyDocumentsLanguage(String safetyDocumentsLanguage) {
        this.safetyDocumentsLanguage = safetyDocumentsLanguage;
    }

    private ComiteEtica comiteEtica;

    @OneToOne(mappedBy = "sop", cascade = CascadeType.ALL)
    public ComiteEtica getComiteEtica() {
        return comiteEtica;
    }

    public void setComiteEtica(ComiteEtica comiteEtica) {
        this.comiteEtica = comiteEtica;
    }

    public String getInvestigatorBrochureSpecify() {
        return investigatorBrochureSpecify;
    }

    public void setInvestigatorBrochureSpecify(String investigatorBrochureSpecify) {
        this.investigatorBrochureSpecify = investigatorBrochureSpecify;
    }

    public String getSusarSpecify() {
        return susarSpecify;
    }

    public void setSusarSpecify(String susarSpecify) {
        this.susarSpecify = susarSpecify;
    }

    public String getSaesSpecify() {
        return saesSpecify;
    }

    public void setSaesSpecify(String saesSpecify) {
        this.saesSpecify = saesSpecify;
    }

    public String getSignificantDeviationsSpecify() {
        return significantDeviationsSpecify;
    }

    public void setSignificantDeviationsSpecify(String significantDeviationsSpecify) {
        this.significantDeviationsSpecify = significantDeviationsSpecify;
    }

    public String getNonSignificantDeviationsSpecify() {
        return nonSignificantDeviationsSpecify;
    }

    public void setNonSignificantDeviationsSpecify(String nonSignificantDeviationsSpecify) {
        this.nonSignificantDeviationsSpecify = nonSignificantDeviationsSpecify;
    }

    public String getGeneralComments() {
        return generalComments;
    }

    public void setGeneralComments(String generalComments) {
        this.generalComments = generalComments;
    }

    public String getInvestigatorBrochureComments() {
        return investigatorBrochureComments;
    }

    public void setInvestigatorBrochureComments(String investigatorBrochureComments) {
        this.investigatorBrochureComments = investigatorBrochureComments;
    }

    public String getSusarComments() {
        return susarComments;
    }

    public void setSusarComments(String susarComments) {
        this.susarComments = susarComments;
    }

    public String getSaesComments() {
        return saesComments;
    }

    public void setSaesComments(String saesComments) {
        this.saesComments = saesComments;
    }

    public String getSignificantDeviationsComments() {
        return significantDeviationsComments;
    }

    public void setSignificantDeviationsComments(String significantDeviationsComments) {
        this.significantDeviationsComments = significantDeviationsComments;
    }

    public String getNonSignificantDeviationsComments() {
        return nonSignificantDeviationsComments;
    }

    public void setNonSignificantDeviationsComments(String nonSignificantDeviationsComments) {
        this.nonSignificantDeviationsComments = nonSignificantDeviationsComments;
    }
}